package com.xuecheng.api.course;

import com.xuecheng.framework.domain.cms.response.QueryResponseResult;
import com.xuecheng.framework.domain.course.CoursePub;
import com.xuecheng.framework.domain.course.TeachplanMedia;
import com.xuecheng.framework.domain.search.CourseSearchParam;
import com.xuecheng.framework.model.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import java.io.IOException;
import java.util.Map;

/**
 * @author ShengJinFeng
 * @version V1.0
 * @ClassName EsCourseControllerApi
 * @Description (这里用一句话描述这个类的作用)
 * @date 2020/2/20 9:06
 * @since V1.0
 */
@Api(value="课程搜索接口",description = "课程搜索接口",tags = "课程搜索接口")
public interface EsCourseControllerApi {

    @ApiOperation("课程搜索")
    public QueryResponseResult list(int page, int size, CourseSearchParam courseSearchParam) throws IOException;

    @ApiOperation("添加课程文档")
    public ResponseResult addEsCourse(CoursePub coursePub);

    @ApiOperation("根据id查询课程信息")
    public Map<String,CoursePub> getall(String id);

    @ApiOperation("根据课程计划id查询媒资信息")
    public TeachplanMedia getmedia(String teachplanId);
}
